<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class PositionsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$positions = [
    		[
    			'id' => 1,
    			'company_id' => 1,
    			'department_id' => 1,
    			'name' => '总经理',
    			'wage' => 100000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 2,
    			'company_id' => 1,
    			'department_id' => 1,
    			'name' => '秘书',
    			'wage' => 8000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 3,
    			'company_id' => 1,
    			'department_id' => 2,
    			'name' => '人事经理',
    			'wage' => 10000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 4,
    			'company_id' => 1,
    			'department_id' => 2,
    			'name' => '人事专员',
    			'wage' => 5000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 5,
    			'company_id' => 1,
    			'department_id' => 3,
    			'name' => '行政经理',
    			'wage' => 10000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
    			'id' => 6,
    			'company_id' => 1,
    			'department_id' => 3,
    			'name' => '行政专员',
    			'wage' => 5000,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],
		];

    	DB::table('positions')->insert($positions);
    }
}
